﻿@{
    ViewBag.Title = "Autocomplete";
}

<h2>Autocomplete</h2>

<p>The value binding links the associated DOM element’s value with a property on your view model. This is typically useful with form elements such as &lt;input&gt;, &lt;select&gt; and &lt;textarea&gt;.</p>


@Html.VisiTogglerFromPartial(CodeSamplePartials.WITH_VIEW_MODEL, Html.CreateVisiToggler("show the samples view model C# source code ", htmlAttributes: new { @class = "onright" }, options: VisiOptions.HiddenByDefault))
<br />
@Html.VisiTogglerFromPartial(CodeSamplePartials.WITH_CONTROLLER, Html.CreateVisiToggler("show the samples controller C# source code ", htmlAttributes: new { @class = "onright" }, options: VisiOptions.HiddenByDefault))


<h3>Sample #1</h3>
@Html.VisiTogglerFromPartial(CodeSamplePartials.WITH1, Html.CreateVisiToggler("show the sample source code ", htmlAttributes: new { @class = "onright" }, options: VisiOptions.HiddenByDefault))

<p>&nbsp;</p>
<p>Next &gt; @Html.ActionLink("Enable", "Enable", "Examples")</p>

@Model.ApplyBindingsScript(KoBindingOptions.IncludeData)